package com.sqly.doc.menu.yyye;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.sqly.doc.R;
import com.sqly.doc.base.MyBaseActivity;
import com.sqly.doc.pojo.JuMin;

/**
 */

public class yyye_menu extends MyBaseActivity {
    LinearLayout l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13,back;
    TextView title, uname;
    Context con = yyye_menu.this;
    JuMin j;

    @Override
    protected void initUI() {
        setContentView(R.layout.yyye_menu);
        back = (LinearLayout) findViewById(R.id.back);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        title = (TextView) findViewById(R.id.title);
        uname = (TextView) findViewById(R.id.uname);
        title.setText("育婴育儿");
        uname.setVisibility(View.INVISIBLE);
       /* uname.setText(SharedPreferencesUtils.getParam(con, "etname", "请选择").toString());
        uname.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivityForResult(new Intent(con, choose_team.class).putExtra("cname", "yyye_menu.class"), 1);
            }
        });*/
        l1 = (LinearLayout) findViewById(R.id.l1);
        l2 = (LinearLayout) findViewById(R.id.l2);
        l3 = (LinearLayout) findViewById(R.id.l3);
        l4 = (LinearLayout) findViewById(R.id.l4);
        l5 = (LinearLayout) findViewById(R.id.l5);
        l6 = (LinearLayout) findViewById(R.id.l6);
        l7 = (LinearLayout) findViewById(R.id.l7);
        l8 = (LinearLayout) findViewById(R.id.l8);
        l9 = (LinearLayout) findViewById(R.id.l9);
        l10 = (LinearLayout) findViewById(R.id.l10);
        l11 = (LinearLayout) findViewById(R.id.l11);
        l12 = (LinearLayout) findViewById(R.id.l12);
        l13 = (LinearLayout) findViewById(R.id.l13);
        l1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","新生儿家庭访视记录"));
            }
        });
        l2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","满月龄儿童健康检查记录"));
            }
        });
        l3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","3月龄儿童健康检查记录"));
            }
        });
        l4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","6月龄儿童健康检查记录"));
            }
        });
        l5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","8月龄儿童健康检查记录"));
            }
        });
        l6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","12月龄儿童健康检查记录"));
            }
        });
        l7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","18月龄儿童健康检查记录"));
            }
        });
        l8.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","24月龄儿童健康检查记录"));
            }
        });
        l9.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","30月龄儿童健康检查记录"));
            }
        });
        l10.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("type","3岁儿童健康检查记录"));
            }
        });
        l11.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("sui", "4").putExtra("type","4岁儿童健康检查记录"));
            }
        });
        l12.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("sui", "5").putExtra("type","5岁儿童健康检查记录"));
            }
        });
        l13.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(yyye_menu.this, yyye_list.class).putExtra("sui", "6").putExtra("type","6岁儿童健康检查记录"));
            }
        });

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }
}
